package com.spring.autowiredAnnotation;

import org.springframework.beans.factory.annotation.Autowired;

public class Boss2 {
	private Car car;
	private Office office;
	
	@Autowired
    Boss2(Car car, Office office){
		this.car = car;
		this.office = office;
    }
	
	@Override
	public String toString(){
		return "Car: " + car + ", Office: " + office;
	}
}